package com.sts.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;
/**
 * 工单状态流转规则实体类
 * 定义工单状态之间的合法转换规则（如"新建"只能转为"处理中"）
 */

@Data
@Builder
@TableName("ticket_status_flow")
public class TicketStatusFlow {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("ticket_id")
    private Long ticketId;

    @TableField("from_status")
    private String fromStatus;

    @TableField("to_status")
    private String toStatus;

    @TableField("operator_id")
    private Long operatorId;

    private String remark;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}